package ws.utils.collections.table;

/**
 * This class represents one table column.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class Column {

  /** Column name. */
  protected String name;
  /** 
   * Column content.
   */
  protected String content;

  protected Column() {
  }

  public Column(String name, String contents) {
    this.name = name;
    this.content = contents;
  }

//  public Object getContent() {
//    return content;
//  }

//  public void setContent(Object contents) {
//    this.content = contents;
//  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    if (content == null) {
      return "N/A";
    } else {
      return content.toString();
    }
  }
}
